package com.example.dianproject.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RegisterResponse {
    private boolean success;
    private String message;
    private Long userId;
    
    public static RegisterResponse success(Long userId) {
        return new RegisterResponse(true, "注册成功", userId);
    }
    
    public static RegisterResponse error(String message) {
        return new RegisterResponse(false, message, null);
    }
} 